home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000211_news@columbia.edu _Thu Apr 20 19:36:19 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id TAA20293
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 20 Apr 2000 19:36:19 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA07918
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 20 Apr 2000 19:36:18 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id TAA20137
  10.     for kermit.misc@watsun.cc.columbia.edu; Thu, 20 Apr 2000 19:10:08 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: dat_thuc_nguyen@my-deja.com
  13. Subject: Lazy man is more productive
  14. Date: Thu, 20 Apr 2000 22:56:18 GMT
  15. Organization: Deja.com - Before you buy.
  16. Message-ID: <8do1ua$jjr$1@nnrp1.deja.com>
  17. To: kermit.misc@columbia.edu
  18.  
  19. For long I am very frustrated of having to do a lot of typing:
  20.  
  21. C-Kermit>.avar = 19
  22. C-Kermit>.bvar = 32
  23. ...
  24.  
  25. After a while, if I want to know the value of avar, I have to type a
  26. long string:
  27.  
  28. C-Kermit>echo \m(avar)
  29.  
  30. I decided to put an end to this nightmare by defining a display
  31. function:
  32.  
  33. C-Kermit>def dp { echo \m(\%1) }
  34.  
  35. >From now on, in order to know the value of avar, I only have to type:
  36.  
  37. C-Kermit>dp avar
  38.  
  39. Short and easy, like the display command of a debugger. This lazy thing
  40. even makes a script more readable.
  41.  
  42. Guess what? Try the following:
  43.  
  44. C-Kermit>dp dp
  45.  
  46. Now I enjoy C-Kermit much more.
  47. Dat
  48.  
  49.  
  50. Sent via Deja.com http://www.deja.com/
  51. Before you buy.